<template>
<div class="layerRtb layerRtb-threecolumn">
    <three-title :title="{name:'隐藏显示主轴标题'}"></three-title>
    <div class="layerRtb-scroll thinScroll" v-scrollHeight = "0">
        <h3 class="cBlue mb20">你可以点击主轴项目的 '嵌套' 测试该功能</h3>
        <h3 class="mb10">Vue 调用方法 <span class="cRed">在路由离开前和进入前，分别调用方法</span></h3>
        <codemd url="Lesson7/docs/close-title.md" index="0"></codemd>
    </div>
</div>
</template>
<script>
import codemd from '../code-md'
export default {
    components: {
        codemd
    },
    data () {
        return {

        }
    },
    beforeRouteEnter (to, from, next) {
        next(vm => {
            vm.$functions.postParentMessage({title: true})
        })
    },
    beforeRouteLeave (to, from, next) {
        this.$functions.postParentMessage({title: true})
        next()
    },
    mounted () {

    },
    methods: {

    }
}
</script>
